<?php
/*
Template Name: Sitemaps
*/
?>
<?php get_header(); ?>
<!-- Begin container -->
 <div id="container">
   <!-- Begin content -->
   <div id="content">
     <div id="content-inner">
      <!-- Begin page -->
		 <?php if (have_posts()) : the_post(); update_post_caches($posts); ?>
		 <div id="pageinfo">
		   <h2><?php the_title(); ?></h2>
		   <div class="pagetext formattext">
		   	<h2>所有作者:</h2>
		   	<ul><?php wp_list_authors(); ?></ul>
		   	<h2>所有文章:</h2>
		   	<ul>
		   		<?php $my_query = new WP_Query('showposts=500'); while ($my_query->have_posts()) : $my_query->the_post(); ?>
		   		<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <strong><?php comments_number('0', '1', '%'); ?></strong></li>
		   		<?php endwhile; ?>
		   	</ul>
		   	<h2>按月存档:</h2>
		   	<ul><?php wp_get_archives('type=monthly'); ?></ul>	
		   	<h2>分类存档:</h2>
		   	<ul><?php wp_list_categories('title_li=0'); ?></ul>
		   	<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
		  </div>
		  </div>
		  <?php else : ?>
	      <p class="errortip">
		    <?php _e('Sorry, no posts matched your criteria.', 'eachBlue'); ?>
	      </p>
        <?php endif; ?>	 
		 <!-- End page -->
	</div>
   </div>
<!-- End content-->
<?php get_sidebar(); ?>
</div>
<!-- End container -->
<?php get_footer(); ?>